Impact of Mass Shootings on Gun Policy
======================================

This document explains how to generate the figures and tables
in the text. The main Stata script for producing most results
in `run.do`. The main data file is `data/data.dta`.


## Tables

1. `summary_stats.do`
2. `run.do` and `reg_sessid.do`
3. `run.do`
4. `run.do` and `reg_sessid.do`
5. `run.do`
6. `run.do` and `reg_sessid.do`


## Figures

1. `graph_series.do`
2. see the `shooting-map` directory for Tableau file
3. `summary_stats.do`
4. `graph_party_sum.R` (need to run `parties.do` first to create a data file)
5. see `fig_shoot_coverage.do` in `data/gun-tv-news` directory


## Appendices

### Gun bill codings (A)
1. No code. Examples from original Lexis Nexis data.
2. `summary_stats.do`

### Neighboring states (B)
1. `run.do` and `bill-analysis/neighbor*.do` (included in `run.do`)
2. `run.do` and `bill-analysis/neighbor*.do` (included in `run.do`)

### Laws enacted (C)
* `run.do` and `reg_sessid.do`

### Neutral laws (D)
* `all_laws.do` (uses `data/lawcounts.dta`)

### Media coverage and shootings (E)
1. see `reg_shoot_coverage.do` in `data/gun-tv-news` directory
2. see `reg_shoot_coverage.do` in `data/gun-tv-news` directory

### Predicting mass shootings (F)
1. `regress_shoot.do`
2. `regress_shoot.do`

### Placebo mass shootings (G)
1. `run.do` and `bill-analysis/placebo.do` and `bill-analysis/table_placebo.do`
2. `run.do` and `bill-analysis/placebo.do` and `bill-analysis/table_placebo.do`

### Dropping individual states (H)
* `leave_one_out.do` and `graph_leave_out.R`

### Gun ownership, shootings, and enacted laws (I)
* `run.do` and `bill-analysis/cook.do` (included in `run.do`)

### Instrument for gun policy (J)
* `iv_shooting.do` (need to use `run.do` before running this)
